home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / bash / bash-1~1 / bash1135.zoo / bash-1.13.5 / builtins / Makefile-ST
Encoding:
Makefile  |  1994-03-16  |  8.8 KB  |  242 lines

  1. # This Makefile for building libbuiltins.a is in -*-text-*- for Emacs.
  2. #
  3. # Got this from make -f bash-Makefile in '..'
  4. LIBINCDIR=..
  5. CPPFLAGS=-I. -I./lib/
  6. CFLAGS=-DHAVE_SETLINEBUF -DHAVE_VFPRINTF -DHAVE_UNISTD_H -DHAVE_STDLIB_H \
  7. -DHAVE_LIMITS_H -DHAVE_RESOURCE -DHAVE_UID_T -DHAVE_BCOPY -DHAVE_WAIT_H \
  8. -DHAVE_GETWD -DHAVE_DUP2 -DHAVE_STRERROR -DHAVE_DIRENT -DHAVE_DIRENT_H \
  9. -DHAVE_STRING_H -DHAVE_VARARGS_H -DHAVE_STRCHR -D"atarist" -D"MiNT" \
  10. -DSHELL -DHAVE_ALLOCA -I.. -I../lib/ -I. \
  11. -mpcrel -mbaserel -O2 -fomit-frame-pointer
  12. LDFLAGS=
  13. RANLIB=ar s
  14. CC=gcc
  15. DIRECTDEFINE=-D builtins/
  16. #
  17. MKBUILTINS = mkbuiltins
  18. #RANLIB = /usr/bin/ranlib
  19. #CFLAGS = -g -I.. -I.
  20. SHELL = /bin/sh
  21. # CC = cc
  22. AR = ar
  23. RM = rm -f
  24. CP = cp
  25.  
  26. .SUFFIXES:
  27. .SUFFIXES: .def .c .o
  28. # How to make a .o file from a .def file.
  29. .def.o:
  30.     $(RM) $@
  31.     ./$(MKBUILTINS) $(DIRECTDEFINE) $*.def
  32.     $(CC) -c $(CFLAGS) $(CPPFLAGS) $*.c
  33.     $(RM) $*.c
  34.  
  35. # How to make a .c file from a .def file.
  36. .def.c:
  37.     $(RM) $@
  38.     ./$(MKBUILTINS) $(DIRECTDEFINE) $*.def
  39.  
  40. # Here is a rule for making .o files from .c files that does not
  41. # force the type of the machine (like -M_MACHINE) into the flags.
  42. .c.o:
  43.     $(RM) $@
  44.     $(CC) -c $(CFLAGS) $(CPPFLAGS) $*.c
  45.  
  46. DEFS =  alias.def bind.def break.def builtin.def cd.def colon.def \
  47.     command.def declare.def echo.def enable.def eval.def \
  48.     exec.def exit.def fc.def fg_bg.def hash.def help.def history.def \
  49.     jobs.def kill.def let.def read.def return.def set.def setattr.def \
  50.     shift.def source.def suspend.def test.def times.def trap.def \
  51.     type.def ulimit.def umask.def wait.def getopts.def reserved.def
  52.  
  53. STATIC_SOURCE = common.c getopt.c bashgetopt.c getopt.h 
  54.  
  55. OFILES = builtins.o \
  56.     alias.o bind.o break.o builtin.o cd.o colon.o command.o \
  57.     common.o declare.o echo.o enable.o eval.o exec.o exit.o \
  58.     fc.o fg_bg.o hash.o help.o history.o jobs.o kill.o \
  59.     let.o read.o return.o set.o setattr.o shift.o source.o \
  60.     suspend.o test.o times.o trap.o type.o ulimit.o umask.o \
  61.     wait.o getopts.o getopt.o bashgetopt.o
  62.  
  63. THINGS_TO_TAR = $(DEFS) $(STATIC_SOURCE) Makefile ChangeLog
  64.  
  65. CREATED_FILES = builtext.h builtins.c psize.aux pipesize.h
  66.  
  67. all: $(MKBUILTINS) libbuiltins.a
  68.  
  69. libbuiltins.a: $(MKBUILTINS) $(OFILES)
  70.     $(RM) $@
  71.     $(AR) cq $@ $(OFILES)
  72.     $(RANLIB) $@
  73.  
  74. builtext.h builtins.c: $(MKBUILTINS) $(DEFS)
  75.     $(RM) builtext.h builtins.c
  76.     ./$(MKBUILTINS) -externfile builtext.h -structfile builtins.c \
  77.     -noproduction $(DIRECTDEFINE) $(DEFS)
  78.  
  79. mkbuiltins: mkbuiltins.c ../config.h
  80.     $(CC) $(CFLAGS) -o $(MKBUILTINS) mkbuiltins.c
  81.  
  82. ulimit.o: ulimit.def pipesize.h
  83.  
  84. pipesize.h:    psize.aux
  85.     $(SHELL) ./psize.sh > pipesize.h
  86.  
  87. psize.aux:    psize.c
  88.     $(CC) $(CFLAGS) -o $@ psize.c
  89.  
  90. documentation: builtins.texi
  91.  
  92. $(OFILES):    $(MKBUILTINS) ../config.h
  93.  
  94. builtins.texi: $(MKBUILTINS)
  95.     ./$(MKBUILTINS) -documentonly $(DEFS)
  96.  
  97. clean:
  98.     $(RM) $(OFILES) $(CREATED_FILES) $(MKBUILTINS) libbuiltins.a
  99.  
  100. alias.o: alias.def
  101. bind.o: bind.def
  102. break.o: break.def
  103. builtin.o: builtin.def
  104. cd.o: cd.def
  105. colon.o: colon.def
  106. command.o: command.def
  107. declare.o: declare.def
  108. echo.o: echo.def
  109. enable.o: enable.def
  110. eval.o: eval.def
  111. exec.o: exec.def
  112. exit.o: exit.def
  113. fc.o: fc.def
  114. fg_bg.o: fg_bg.def
  115. hash.o: hash.def
  116. help.o: help.def
  117. history.o: history.def
  118. jobs.o: jobs.def
  119. kill.o: kill.def
  120. let.o: let.def
  121. read.o: read.def
  122. return.o: return.def
  123. set.o: set.def
  124. setattr.o: setattr.def
  125. shift.o: shift.def
  126. source.o: source.def
  127. suspend.o: suspend.def
  128. test.o: test.def
  129. times.o: times.def
  130. trap.o: trap.def
  131. type.o: type.def
  132. umask.o: umask.def
  133. wait.o: wait.def
  134. getopts.o: getopts.def
  135. reserved.o: reserved.def
  136.  
  137. common.o: ../shell.h ../command.h ../config.h ../general.h ../error.h
  138. common.o: ../variables.h ../input.h hashcom.h
  139. common.o: ../quit.h  ../unwind_prot.h ../maxpath.h ../jobs.h ../builtins.h
  140. alias.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  141. alias.o: ../quit.h
  142. alias.o: ../shell.h ../unwind_prot.h ../variables.h common.h
  143. bind.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h ../quit.h 
  144. bind.o: ../shell.h ../unwind_prot.h ../variables.h bashgetopt.h
  145. break.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  146. break.o: ../quit.h 
  147. break.o: ../shell.h ../unwind_prot.h ../variables.h 
  148. builtin.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  149. builtin.o: ../quit.h common.h
  150. builtin.o: ../shell.h ../unwind_prot.h ../variables.h 
  151. cd.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h ../quit.h 
  152. cd.o: ../shell.h ../unwind_prot.h ../variables.h common.h
  153. command.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  154. command.o: ../quit.h bashgetopt.h
  155. command.o: ../shell.h ../unwind_prot.h ../variables.h 
  156. declare.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  157. declare.o: ../quit.h 
  158. declare.o: ../shell.h ../unwind_prot.h ../variables.h 
  159. echo.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  160. echo.o: ../quit.h 
  161. echo.o: ../shell.h ../unwind_prot.h ../variables.h 
  162. enable.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  163. enable.o: ../quit.h 
  164. enable.o: ../shell.h ../unwind_prot.h ../variables.h 
  165. eval.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h ../quit.h 
  166. eval.o: ../shell.h ../unwind_prot.h ../variables.h 
  167. exec.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h ../quit.h 
  168. exec.o: ../shell.h ../unwind_prot.h ../variables.h common.h
  169. exit.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  170. exit.o: ../quit.h
  171. exit.o: ../shell.h ../unwind_prot.h ../variables.h 
  172. fc.o: ../builtins.h ../command.h bashgetopt.h
  173. fc.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h ../quit.h 
  174. fc.o: ../flags.h ../unwind_prot.h ../variables.h ../shell.h 
  175. fg_bg.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  176. fg_bg.o: ../quit.h 
  177. fg_bg.o: ../shell.h ../unwind_prot.h ../variables.h 
  178. getopts.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h ../quit.h 
  179. getopts.o: ../shell.h ../unwind_prot.h ../variables.h 
  180. hash.o: ../builtins.h ../command.h 
  181. hash.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h ../quit.h 
  182. hash.o: ../shell.h ../unwind_prot.h ../variables.h common.h
  183. help.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  184. help.o: ../quit.h 
  185. help.o: ../shell.h ../unwind_prot.h ../variables.h 
  186. history.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  187. history.o: ../quit.h
  188. history.o: ../filecntl.h ../shell.h ../unwind_prot.h ../variables.h 
  189. inlib.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h ../quit.h 
  190. inlib.o: ../shell.h ../unwind_prot.h ../variables.h 
  191. jobs.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  192. jobs.o: ../quit.h bashgetopt.h
  193. jobs.o: ../shell.h ../unwind_prot.h ../variables.h 
  194. kill.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  195. kill.o: ../quit.h
  196. kill.o: ../shell.h ../trap.h ../unwind_prot.h ../variables.h 
  197. let.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  198. let.o: ../quit.h 
  199. let.o: ../shell.h ../unwind_prot.h ../variables.h 
  200. read.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  201. read.o: ../quit.h 
  202. read.o: ../shell.h ../unwind_prot.h ../variables.h 
  203. return.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  204. return.o: ../quit.h 
  205. return.o: ../shell.h ../unwind_prot.h ../variables.h 
  206. set.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  207. set.o: ../quit.h 
  208. set.o: ../shell.h ../unwind_prot.h ../variables.h 
  209. setattr.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  210. setattr.o: ../quit.h common.h bashgetopt.h
  211. setattr.o: ../shell.h ../unwind_prot.h ../variables.h 
  212. shift.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  213. shift.o: ../quit.h 
  214. shift.o: ../shell.h ../unwind_prot.h ../variables.h 
  215. source.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  216. source.o: ../quit.h 
  217. source.o: ../shell.h ../unwind_prot.h ../variables.h 
  218. suspend.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  219. suspend.o: ../quit.h
  220. suspend.o: ../shell.h ../unwind_prot.h ../variables.h 
  221. test.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  222. test.o: ../quit.h 
  223. test.o: ../shell.h ../unwind_prot.h ../variables.h 
  224. times.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  225. times.o: ../quit.h
  226. times.o: ../shell.h ../unwind_prot.h ../variables.h 
  227. trap.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  228. trap.o: ../quit.h common.h
  229. trap.o: ../shell.h ../unwind_prot.h ../variables.h 
  230. type.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  231. type.o: ../quit.h common.h
  232. type.o: ../shell.h ../unwind_prot.h ../variables.h 
  233. ulimit.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  234. ulimit.o: ../quit.h 
  235. ulimit.o: ../shell.h ../unwind_prot.h ../variables.h 
  236. umask.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  237. umask.o: ../quit.h 
  238. umask.o: ../shell.h ../unwind_prot.h ../variables.h 
  239. wait.o: ../command.h ../config.h ../error.h ../general.h ../maxpath.h
  240. wait.o: ../quit.h 
  241. wait.o: ../shell.h ../unwind_prot.h ../variables.h 
  242.